package com.woniu.liuzhougov.report.service.impl;

import com.woniu.liuzhougov.report.dao.MyItemReportMapper;
import com.woniu.liuzhougov.report.pojo.Report;
import com.woniu.liuzhougov.report.service.MyItemReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional(rollbackFor = Exception.class)
public class MyItemReportImpl implements MyItemReportService {

    @Autowired
    private MyItemReportMapper myItemReportMapper;


    /**
     * 查询所有 我的事项
     * @param name  当前登录账户
     * @return
     */
    @Override
    public List<Report> listMyReport(int name) {
        return myItemReportMapper.listMyReport(name);
    }
}
